<%--
    Document   : index
    Created on : Mar 10, 2014, 10:54:45 PM
    Author     : Anton Strack
--%>
<form method="POST" action="${config.getPath()}">
    <div class="form-group">
        <label class="form-control" for="postName">Comment Name:</label>
        <input class="form-control" id="postName" name="postName" required="" type="text" value="${bean.name}"/><br />
        <label class="form-control" for="postBody">Comment Body:</label>
        <textarea class="form-control" id="postBody" name="postBody" required="" autofocus="" rows="5">${bean.body}</textarea><br />
        <input type="hidden" name="postSection" id="postSection" value="full" /><!-- this will eventually either be filled by java script or become a text field to enter a regex that can highlight a specific area of the post -->
        <input type="hidden" name="parentId" id="parentId" value="${parentId}" />
        <input type="hidden" name="parentTypeId" id="parentTypeId" value="${parentTypeId}" />
        <input type="hidden" name="postId" id="postId" value="${bean.id}" />
    </div>
    <button class="btn btn-primary" type="submit" name="formSubmit" id="formSubmit" value="update-comment">Save ${bean.name}</button>
</form>
